package woaini.fenger.core.bot.event.message.impl;

import java.io.Serializable;

import lombok.*;
import woaini.fenger.core.bot.event.Segment;

/**
 * <a href="https://github.com/botuniverse/onebot-11/blob/master/message/segment.md#%E7%BA%AF%E6%96%87%E6%9C%AC">纯文本</a>
 * @see  Text
 * @author yefeng
 * {@code @Date} 2023-05-16 16:50:39
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class Text extends Segment implements Serializable {

    private Data data;

    public Text(String text) {
        super("text");
        this.data = new Data(text);
    }

    @NoArgsConstructor
    @lombok.Data
    public static class Data implements Serializable {
        private String text;

        public Data(String text) {
            this.text = text;
        }
    }
}
